package com.migo.service.impl;

import com.migo.dao.FlightLogDao;
import com.migo.entity.FlightLogEntity;
import com.migo.service.FlightLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;



@Service("flightLogService")
public class FlightLogServiceImpl implements FlightLogService {
	@Autowired
	private FlightLogDao flightLogDao;
	
	@Override
	public FlightLogEntity queryObject(Integer id){
		return flightLogDao.queryObject(id);
	}
	
	@Override
	public List<FlightLogEntity> queryList(Map<String, Object> map){
		return flightLogDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return flightLogDao.queryTotal(map);
	}
	
	@Override
	public void save(FlightLogEntity flightLog){
		flightLogDao.save(flightLog);
	}
	
	@Override
	public void update(FlightLogEntity flightLog){
		flightLogDao.update(flightLog);
	}
	
	@Override
	public void delete(Integer id){
		flightLogDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		flightLogDao.deleteBatch(ids);
	}
	
}
